import 'package:flutter/material.dart';
import 'package:flutter_jd/pages/tabbar/find/controller.dart';
import 'package:flutter_jd/ui/pages/application/goods_list.dart';
import 'package:flutter_jd/ui/widgets/refresh/pull_refresh.dart';
import 'package:flutter_jd/ui/widgets/body/top_bar.dart';
import 'package:get/route_manager.dart';
import 'package:get/get.dart';

// 发现
class Find extends GetView<FindController> {
  @override
  Widget build(BuildContext context) {
    Get.put(FindController());
    return Scaffold(
      appBar: TopBar(
        title: '发现',
      ),
      body: PullRefresh(
        refreshController: controller.refreshController,
        onRefresh: controller.onRefresh,
        onLoading: controller.onLoading,
        child: GoodsList(
          goodsList: controller.productList,
        ),
      ),
    );
  }
}
